/**
 * 
 */
package com.jootu.cc.ccapi;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 *
 *@author:antch
 *@date:2017年8月10日
 *@Description:（WebMvc配置类）
 *
 */
//@EnableWebMvc
//@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/swagger-ui.html")
		.addResourceLocations("classpath:/META-INF/resources/");
		registry.addResourceHandler("webjars/springfox-swagger-ui/**")
		.addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/**");
		super.addResourceHandlers(registry);
	}
}
